package com.aifeng.model

import com.aifeng.hassan_food.BuildConfig

/**
 * 项目名称：Hassan_Food
 * 创建人：小卷毛
 * 创建时间：2020-05-06 15:56
 */
object BaseUrl {

    @Suppress("MayBeConstant")
    val baseHttp = BuildConfig.API_HOST
    private val baseUrl = "$baseHttp/rest"

    val goodsType = "$baseUrl/goods/getGoodsType.cs"           //商品分类
    val goodsList = "$baseUrl/goods/getGoodsList.cs"           //商品列表
    val goodsDetail = "$baseUrl/goods/getgoods.cs"             //商品详情
    val goodsHot = "$baseUrl/goods/getHotgoods.cs"             //热销商品
    val goodsRecommend = "$baseUrl/goods/getRecommendgoods.cs" //推荐商品
    val banner = "$baseUrl/banner/getList.cs"                  //轮播图

    val noticeList = "$baseUrl/notice/getList.cs" //通知列表

    val checkInvite = "$baseUrl/user/checkInviteCode.cs" //校验邀请码
    val checkPhone = "$baseUrl/user/checkPhone.cs"       //校验手机号
    val getCode = "$baseUrl/user/getCode.cs"             //获取验证码
    val upgrade = "$baseUrl/user/upgrade.cs"             //升级会员
    val login = "$baseUrl/user/login2.cs"                //登录
    val getUserInfo = "$baseUrl/user/getUserInfo.cs"     //用户信息
    val resetPwd = "$baseUrl/user/resetpwd.cs"           //忘记密码
    val resetPayPwd = "$baseUrl/user/resetPaypwd.cs"     //忘记支付密码
    val identity = "$baseUrl/user/editidentity.cs"       //实名认证
    val editPwd = "$baseUrl/user/editpwd.cs"             //修改密码
    val editPhone = "$baseUrl/user/editphone.cs"         //修改手机号
    val editInfo = "$baseUrl/user/edit.cs"               //修改用户信息
    val unbind = "$baseUrl/user/unbind.cs"               //解绑微信
    val withdraw = "$baseUrl/user/savecash.cs"           //提现

    val other = "$baseUrl/user/getNotice.cs" //其他设置

    val inviteList = "$baseUrl/user/getInviteList.cs"   //我的邀请
    val editState = "$baseUrl/user/editState.cs"        //确认邀请
    val balanceList = "$baseUrl/user/getBalancelist.cs" //余额明细

    val addressList = "$baseUrl/goods/getAddresslist.cs"  //收货地址列表
    val addAddress = "$baseUrl/goods/addaddress.cs"       //添加收货地址
    val updateAddress = "$baseUrl/goods/updateaddress.cs" //编辑收货地址
    val delAddress = "$baseUrl/goods/deladdress.cs"       //删除收货地址

    val carList = "$baseUrl/cart/getCartlist.cs" //购物车列表
    val delCar = "$baseUrl/cart/delcart.cs"      //删除购物车
    val addCar = "$baseUrl/cart/edit.cs"         //添加购物车

    val express = "$baseUrl/order/getTrace.cs"          //物流
    val expressFee = "$baseUrl/order/getExpressfee.cs"  //运费
    val createOrder = "$baseUrl/order/createorder.cs"   //提交订单
    val orderList = "$baseUrl/order/getOrderlist.cs"    //订单列表
    val shopList = "$baseUrl/order/getShopList.cs"      //店铺订单
    val cancelOrder = "$baseUrl/order/cancelOrder.cs"   //取消订单
    val delOrder = "$baseUrl/order/delOrder.cs"         //删除订单
    val confirmGoods = "$baseUrl/order/confirmgoods.cs" //确认收货
    val orderInfo = "$baseUrl/order/getOrderInfo.cs"    //订单详情
    val prePay = "$baseUrl/pay/prePay.cs"               //获取支付

    val saleInfo = "$baseUrl/order/getSaleInfo.cs"   //销量
    val monthSale = "$baseUrl/order/getMonthSale.cs" //历史销量

    val registerCode = "$baseHttp/register/register.jsp?inviteCode=" //注册二维码

}